package com.yantong.service.impl;

import com.yantong.pojo.MemberAggregation;
import com.yantong.mapper.MemberAggregationMapper;
import com.yantong.service.MemberAggregationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author liaozhaogui
 * @description: MemberAggregationServiceImpl
 * @date 2020/9/18 12:59
 */
@Service
public class MemberAggregationServiceImpl implements MemberAggregationService {
	@Autowired
	private MemberAggregationMapper memberAggregationMapper;

	@Override
	public Integer insert(MemberAggregation memberAggregation) {
		if(null == memberAggregation){
			return null;
		}
		return memberAggregationMapper.insert(memberAggregation);
	}

	@Override
	public List<MemberAggregation> queryList(Long mid) {
		if(null == mid){
			return null;
		}
		return  memberAggregationMapper.queryList(mid);
	}

	@Override
	public MemberAggregation queryByCode(String aggregationCode) {
		if(null == aggregationCode){
			return null;
		}
		return memberAggregationMapper.queryByCode(aggregationCode);
	}
}
